package com.tyj.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyj.common.utils.PageUtils;
import com.tyj.gulimall.ware.entity.PurchaseEntity;
import com.tyj.gulimall.ware.vo.DonePurchaseVo;
import com.tyj.gulimall.ware.vo.ItemsVo;
import com.tyj.gulimall.ware.vo.MergeVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author tanyoujie
 * @email 983629093@qq.com
 * @date 2021-02-09 22:40:38
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     * @param params
     * @return
     */
    PageUtils queryUnreceive(Map<String, Object> params);

    /**
     * 合并采购单业务
     * @param mergeVo
     */
    void mergePurchase(MergeVo mergeVo);

    /**
     * 领取采购单业务
     * @param purchaseId
     */
    void receivedPurchase(List<Long> purchaseId);

    /**
     * 完成采购
     * @param donePurchaseVo
     */
    void donePurchase(DonePurchaseVo donePurchaseVo);
}

